aboutsummaryrefslogtreecommitdiff
path: root/fallback.c
blob: 023d11c3c429306fde89214a788b1b0e6b4d0ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
** fallback.c
** TecCGraf - PUC-Rio
*/
 
char *rcs_fallback="$Id: $";

#include <stdio.h>
 
#include "fallback.h"
#include "lua.h"


void luaI_errorFB (void)
{
  lua_Object o = lua_getparam(1);
  if (lua_isstring(o))
    fprintf (stderr, "lua: %s\n", lua_getstring(o));
  else
    fprintf(stderr, "lua: unknown error\n");
}
 

void luaI_indexFB (void)
{
  lua_pushnil();
}
 

void luaI_gettableFB (void)
{
  lua_error("indexed expression not a table");
}
 

void luaI_arithFB (void)
{
  lua_error("unexpected type at conversion to number");
}

void luaI_concatFB (void)
{
  lua_error("unexpected type at conversion to string");
}


void luaI_orderFB (void)
{
  lua_error("unexpected type at comparison");
}