kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

Undefine, and unmacro #133

Closed ghost closed 12 years ago

ghost commented 12 years ago

They let you do some fun tricks, and it could be useful in a situation where code conflicts.

ghost commented 12 years ago

I want to change this to local defines, and local macros...

kierenj commented 12 years ago

In theory you can already make a #define or #macro within a file which would override one from another project. Because the files are not put through a preprocessor per se (where macros, defines etc need to appear before any references to them), this is less applicable I think. Will leave this issue here and think about it a little later on I think

ghost commented 12 years ago

Well with a top down approach you could do something similar to the labels, where you have local, and global defines, and macros

kierenj commented 12 years ago

What I have in mind is not to allow conflicting code, and force some good coding practises. This isn't a classic-style assembler (w/ separate preprocessor), it performs a lot of analysis which enables cross-language, cross-project and cross-file references. #undef/#unmacro etc don't fit into this idea at the moment