Hamo Member Licensed User Longtime User Nov 21, 2013 #1 In C, I would use something like #define In5 (Inputs1To16[4] == '0') #define Out5_on Outputs1To16[4] = '1'; and in the C code I could have if (In5) Out5_on The C compiler replaces the code in the source with the definition. Is something like this possible with B4A or is there something equivalent to #define Hamo
In C, I would use something like #define In5 (Inputs1To16[4] == '0') #define Out5_on Outputs1To16[4] = '1'; and in the C code I could have if (In5) Out5_on The C compiler replaces the code in the source with the definition. Is something like this possible with B4A or is there something equivalent to #define Hamo
Erel B4X founder Staff member Licensed User Longtime User Nov 21, 2013 #2 Precompiler macros are not supported. You can write a regular sub instead. The Java compiler and runtime can inline methods. Upvote 0
Precompiler macros are not supported. You can write a regular sub instead. The Java compiler and runtime can inline methods.