Python: Wrapping #define's and enum's
Many C/C++ libraries contain one or more .h/.hpp files that define various constants used by that library's API. What is the prescribed method for wrapping #defines that are used to represent constants? Also, how do I wrap anonymous enums? For example, I have a project with an Enumerations.h file containing: #define MSG_A 23 #define MSG_B 25 enum {Red, White, Blue = 40 }; What would the boost wrapper code for the above look like? Thanks, Bill
Many C/C++ libraries contain one or more .h/.hpp files that define various constants used by that library's API.
What is the prescribed method for wrapping #defines that are used to represent constants?
Also, how do I wrap anonymous enums?
What do you mean by "wrapping" ?
For example, I have a project with an Enumerations.h file containing:
#define MSG_A 23 #define MSG_B 25 enum {Red, White, Blue = 40 };
What would the boost wrapper code for the above look like?
"Edward Diener"
wrote in message news:at5cvp+3ei5@eGroups.com... Many C/C++ libraries contain one or more .h/.hpp files that define various constants used by that library's API.
What is the prescribed method for wrapping #defines that are used to represent constants?
Also, how do I wrap anonymous enums?
What do you mean by "wrapping" ?
Don't worry; I know what he means. William, please post Boost.Python questions here: http://mail.python.org/mailman/listinfo/c++-sig Thanks, -- David Abrahams dave@boost-consulting.com * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
participants (3)
-
David Abrahams
-
Edward Diener
-
William Trenker <wtrenkerï¼ hotmail.com>