Is EXPTYPE_INTEGER long enough for a pointer

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Tue Sep 22, 2009 4:47 pm

is it safe to return ret=pointers (as RETURN_INTEGER) to be taken back as params[x].GetInt()
or is the ExpType_Integer to short?
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Wed Sep 23, 2009 12:44 pm

Look at the definitions in the header file. It's an __int64, so in theory it can hold two pointers in a 32-bit system, but you really shouldn't do that. Pointers have no meaning whatsoever in events and therefore should not be involved in the event engine at all.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 0 guests