I am trying to write a VB.NET program which deals with a lot of small bit manipulations for which I am really missing the #define macro's which can be used in C/C++.
Is there a possibility to define preprocessor macros. For example,
#define MAX(x,y) ((x) > (y) ? (x) : (y))
Above will substitute the function at runtime replacing the token in C. Is it possible to do the same in VB.NET.
I do not want to write functions as for me speed is the key and I cannot afford functions being pushed on the stack for small but repetitive tasks.