lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello!

I am developing game "The Roots" for PC and XBox. (You can read about project
on www.theroots-game.com)

Lua works without problems on XBox, however, in "release" (i.e. not debug)
there is one missing symbol: getenv(). There is no such thing on XBox. So I
defined:

#ifdef _XBOX
#ifndef _DEBUG
char * __cdecl getenv(const char *)
{
	return 	NULL;
}
#endif
#endif

Is it possible to check in Lua source if getenv is defined, and if no - not use
it?

-- 
Free Software - find interesting programs and change them
NetHack - meet interesting creatures, kill them and eat their bodies
Usenet - meet interesting people from all over the world and flame them
Decopter - unrealistic helicopter simulator, get it from http://decopter.sf.net