I'm currently starting to develop a game with GMS:2, I come from the old days of GM6-8.1. Before starting my development since I have a heavy C# background I would like to, C#-ify my code-base with some macros. For example,
Easy, right? However, upon further development I realized that it would be nice if I could define some macros that let me better define the scope of variables, something like this:
However, of course, I cannot set a variable that hasn't be declared so I thought maybe macros could be empty and I could at least maintain the visual appearance:
However, apparently this isn't possible with GML, neither is passing arguments to macros which is also quite depressing. Is there perhaps something else I could do that would give me the results I'm looking for?
undefinedin C#, would translate to
null. So, naturally I defined a macro like so:
#macro null undefined
#macro local var #macro instanced instance_id[id]. .
#macro local var #macro instanced