/[enigma]/enigma/lib-src/libtolua/tolua_eh.c
ViewVC logotype

Diff of /enigma/lib-src/libtolua/tolua_eh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dheck, Sun Jan 5 20:04:45 2003 UTC revision 1.2 by reallysoft, Mon May 19 12:12:43 2003 UTC
# Line 6  Line 6 
6  ** $Id$  ** $Id$
7  */  */
8    
9  /* This code is free software; you can redistribute it and/or modify it.  /* This code is free software; you can redistribute it and/or modify it.
10  ** The software provided hereunder is on an "as is" basis, and  ** The software provided hereunder is on an "as is" basis, and
11  ** the author has no obligation to provide maintenance, support, updates,  ** the author has no obligation to provide maintenance, support, updates,
12  ** enhancements, or modifications.  ** enhancements, or modifications.
13  */  */
14    
15  #include "tolua.h"  #include "tolua.h"
# Line 18  Line 18 
18    
19  #include <stdio.h>  #include <stdio.h>
20    
21  /* registry fiels used to hold current error info  /* registry fiels used to hold current error info
22     - tolua_err_narg: number of wrong argument     - tolua_err_narg: number of wrong argument
23     - tolua_err_provided: provided type     - tolua_err_provided: provided type
24     - tolua_err_expected: expected type     - tolua_err_expected: expected type
25  */  */
26    
27  void toluaI_eh_set  void toluaI_eh_set
28  (lua_State* L, int narg, const char* provided, const char* expected)  (lua_State* L, int narg, const char* provided, const char* expected)
29  {  {
30   lua_pushnumber(L,narg);   lua_pushnumber(L,narg);
# Line 35  void toluaI_eh_set Line 35  void toluaI_eh_set
35   toluaI_setregistry(L,"tolua_err_expected");   toluaI_setregistry(L,"tolua_err_expected");
36  }  }
37    
38  void tolua_error (lua_State* L, char* msg)  void tolua_error (lua_State* L, const char* msg)
39  {  {
40   if (msg[0]=='#')   if (msg[0]=='#')
41   {   {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26