svfgit / tinypy

Automatically exported from code.google.com/p/tinypy
Other
0 stars 0 forks source link

True and False redefined #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile a project which uses something like below (i.e. all of mine :P):

#define True true
#define False false
#define None NULL

2. Make use of tinypy with the tinypy.h created from the setup.py blob
3. Compilation will fail

What is the expected output? What do you see instead?

Possibility to use my own symbols named True, False and None.

What version of the product are you using? On what operating system?

SVN trunk revision 16. Linux.

Please provide any additional information below.

If this can't be easily fixed, I'd also be grateful for any possible
workarounds.. maybe some clever #define trick when including tinypy.h? Not
being able to use these three symbols in my own code would be quite bad..

Original issue reported on code.google.com by allef...@gmail.com on 3 May 2008 at 4:07

GoogleCodeExporter commented 9 years ago

Original comment by philhas...@gmail.com on 10 May 2008 at 6:30