About Store Forum Documentation Contact



Post Reply 
#define T (*this)
Author Message
ve1e Offline
Member

Post: #1
#define T (*this)
Hey people. I am checking out esenthel, engine is rly great, altho some of its design i think is gimp (might be just a matter of taste tho).

Anyhow i found few things that look odd, i have no clue how author of the code thought of them.. one of them is "#define T (*this)". I mean.. how this could ever happen? it is common knowledge that people like defining typenames in template classes and functions as letter T. Now what this define does - it **** everything up if certain libraries with that code are used. So i wonder if its known issue with known workaround.. Or will this be something to fix?
09-09-2010 05:42 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: #define T (*this)
Hey,

There is a workaround for that e.g:

#undef T
#undef C
#include "FILE.h"
using namespace FILE;
#define T (*this)
#define C const

There is always evil somewhere, you just have to look for it properly.
09-09-2010 05:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ve1e Offline
Member

Post: #3
RE: #define T (*this)
i see. thanks :]
09-09-2010 05:54 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #4
RE: #define T (*this)
np smile

There is always evil somewhere, you just have to look for it properly.
09-09-2010 05:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply