Skip to main content
GameDev.net gamedev.net
🔒 Locked

Current module?

Started by mandrav Oct 24, 2005 at 6:20 AM 1 replies 1.2k views
Original Post
mandrav
mandrav
Hi, is there any way I can retrieve the current module's name for the currently executing context? Yiannis.
WitchLord
WitchLord
			int funcID = ctx->GetCurrentFunction();printf("func: %s\n", engine->GetFunctionDeclaration(funcID));printf("mdle: %s\n", engine->GetModuleNameFromIndex(asMODULEIDX(funcID)));printf("sect: %s\n", engine->GetFunctionSection(funcID));printf("line: %d\n", ctx->GetCurrentLineNumber());


Regards,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.