Implemented #define functions again

note that all cc functions always return a ccDisplay* or a
ccDisplayData*, non pointer values are not returned. Static variables
only exist in the compile context, so putting them in a header creates
duplicates.