The macro language is not part of the c++ language. As far as I know, Bjarne would have loved to get rid of it entirely, but it was kept to help maximize C compatibility.
C11 introduced Generic Selection which allows type control in macros. Too bad C++ diverged so much from C.
For games, use SDL (C) and embed Lua. Use C for performance sensitive stuff; use Lua for high level stuff.
This is what the majority of cross-platform commercial games do. SDL gets you onto all platforms (C and SDL work just about everywhere) and Lua (which is implemented in pure C too and goes everywhere) lets you focus more on the content of your game instead of masturbating with complex language issues.
This post on the SDL mailing list thinks dynamic linking is now allowed opening the door for LGPL and even GPL in commercial projects on the devices.
http://forums.libsdl.org/viewtopic.php?t=6549
e) Fix the macro language so it is type safe
The macro language is not part of the c++ language. As far as I know, Bjarne would have loved to get rid of it entirely, but it was kept to help maximize C compatibility.
C11 introduced Generic Selection which allows type control in macros. Too bad C++ diverged so much from C.
They picked the wrong type of quotes for comparison.
Yippe-ki-yay Motherf@(#€&!
Meesa called Jar Jar Binks.
For games, use SDL (C) and embed Lua. Use C for performance sensitive stuff; use Lua for high level stuff. This is what the majority of cross-platform commercial games do. SDL gets you onto all platforms (C and SDL work just about everywhere) and Lua (which is implemented in pure C too and goes everywhere) lets you focus more on the content of your game instead of masturbating with complex language issues.
WikiLeaks does this for free.
This post on the SDL mailing list thinks dynamic linking is now allowed opening the door for LGPL and even GPL in commercial projects on the devices. http://forums.libsdl.org/viewtopic.php?t=6549