M
mlt
Is there someway in C++ to read a machines ID of somekind?
I have some code that should be compiled in a certain way when it is
compiled on a laptop and in another way when its compiled on a desktop.
Currently I do:
#define DESKTOP 1
in main() {
if(DESKTOP)
{
// do desktop compilation
}
else
{
// do laptop compilation
}
}
I could be nice if there was some system variable that I could test for that
would identify the correct machine.
I have some code that should be compiled in a certain way when it is
compiled on a laptop and in another way when its compiled on a desktop.
Currently I do:
#define DESKTOP 1
in main() {
if(DESKTOP)
{
// do desktop compilation
}
else
{
// do laptop compilation
}
}
I could be nice if there was some system variable that I could test for that
would identify the correct machine.