GameMonkey Script

GameMonkey Script Forums
It is currently Mon Nov 20, 2017 3:39 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error handling
PostPosted: Fri Feb 19, 2010 4:14 pm 
Offline

Joined: Fri Feb 19, 2010 4:01 pm
Posts: 2
Hi

I'm trying to implement error handling in my game and have some problems. I'm using that same code for error handling as 'GameObject' example. My error ouput looks a little bit strange for bound function:

Code:
int gm_my_function(gmThread *a_thread)
{
   GM_CHECK_NUM_PARAMS(1);
   GM_CHECK_FLOAT_PARAM(somevar, 0);
   
   //do something
   
   return GM_OK;
}


And output:

Code:
 : expecting param 0 as float or int
 : unknown(0) :
 : callstack..
 : 0: __unknown
 : 0: __unknown
 :


How do i get info like function name, error line etc.?


Top
 Profile  
Reply with quote  
 Post subject: Re: Error handling
PostPosted: Fri Feb 19, 2010 5:08 pm 
Offline

Joined: Fri Jan 14, 2005 2:28 am
Posts: 439
enable debug mode on the gmMachine


Top
 Profile  
Reply with quote  
 Post subject: Re: Error handling
PostPosted: Fri Feb 19, 2010 5:19 pm 
Offline

Joined: Fri Feb 19, 2010 4:01 pm
Posts: 2
Thanks a lot;)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group