I have created a new Item (File.h)
In this (File.h) I have written this and in File2.h I have #include "File.h"
and this works fine. (Time and Input1 are declared in File2.h)
#define Criteria1 Time == Input1
What I instead want to achieve is to make a bool out of: Time == Input1
I have tried something like this but this is not working.
This is written in File.h
Then I have written this in File2.cppCode:#define Criteria1 Criteria2() extern int Time; extern double Input1; _inline bool Criteria2() { return Time == Input1; }
However this does not compile. I dont know if I am doing completely wrong here.Code:#include "StdAfx.h" #include "File2.h" int Time = 0; double Input1 = 0;
Am I on the right track ?