summaryrefslogtreecommitdiff
path: root/src/BLua.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-08 09:23:03 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-08 09:23:03 +0200
commit29e4a0512331a36c1cde22ed26c6ae059fa20757 (patch)
tree09496f029124fe4fc61aa7e014df50349128ced3 /src/BLua.cc
parent8fd11c9821c23c69da76158c87acdefe2ae9586f (diff)
Adding libtommath, libtomcrypt and lcrypt, mainly for the bignum support.
Diffstat (limited to 'src/BLua.cc')
-rw-r--r--src/BLua.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/BLua.cc b/src/BLua.cc
index 3d47c72..22252d4 100644
--- a/src/BLua.cc
+++ b/src/BLua.cc
@@ -438,6 +438,16 @@ void Balau::Lua::open_bit() {
while (n < gettop()) pop();
}
+extern "C" {
+int luaopen_lcrypt(lua_State *L);
+}
+
+void Balau::Lua::open_lcrypt() {
+ int n = gettop();
+ luaopen_lcrypt(L);
+ while (n < gettop()) pop();
+}
+
void Balau::Lua::declareFunc(const char * name, lua_CFunction f, int i) {
checkstack(2);
lua_pushstring(L, name);