[Your Thoughts] Macros for Cross-Platform API Functionality
Posted: Fri Feb 11, 2011 1:26 pm
Wondering what you think of this idea...
Having a code library, which is designed to provide procedures and macros that will provide access to alternatives to each OS's API functions.
For instance;
Windows SetProp_(), would have a standard procedure name like 'SetProperty(...)' and in-code it would compile a version designed for each OS, be it Linux (g_object_set_property), or Mac (...)..
I know some API features in Windows may not exist in Linux, or Mac, but if a suitable work-around can be written as an alternative, it should provide a much wider function list that can be used in PureBasic regardless of OS.
Env
Having a code library, which is designed to provide procedures and macros that will provide access to alternatives to each OS's API functions.
For instance;
Windows SetProp_(), would have a standard procedure name like 'SetProperty(...)' and in-code it would compile a version designed for each OS, be it Linux (g_object_set_property), or Mac (...)..
I know some API features in Windows may not exist in Linux, or Mac, but if a suitable work-around can be written as an alternative, it should provide a much wider function list that can be used in PureBasic regardless of OS.
Env