summaryrefslogtreecommitdiff
path: root/include/BLua.h
blob: 476ac0a0a55cf37385541e1e87dbca074b9df191 (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
#ifndef __BLUA_H__
#define __BLUA_H__

#include <lua.h>
#include <map>
#include <Exceptions.h>
#include <Handle.h>

class Lua : public Base {
  public:
      Lua();
      Lua(const Lua &) throw (GeneralException);
      virtual ~Lua();
    void push();
    void push(double);
    void push(const String &);
    void push(bool);
    void push(void *);
    void push(lua_CFunction, int = 0);
    void load(Handle *) throw (GeneralException) ;
    Lua * thread();
    static Lua * find(lua_State *);
  private:
      Lua(lua_State *);
    lua_State * L;
    static std::map<lua_State *, Lua *> lualist;
};

#endif