A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move parts of the kernel to the right subdir
[simgrid.git]
/
src
/
bindings
/
lua
/
lua_utils.h
diff --git
a/src/bindings/lua/lua_utils.h
b/src/bindings/lua/lua_utils.h
index
49f8e4d
..
2eea739
100644
(file)
--- a/
src/bindings/lua/lua_utils.h
+++ b/
src/bindings/lua/lua_utils.h
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010
-2011, 2013-2014
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-6,6
+6,11
@@
/* SimGrid Lua helper functions */
/* SimGrid Lua helper functions */
+#ifndef LUA_UTILS_H
+#define LUA_UTILS_H
+
+extern "C" {
+
#include <lua.h>
/**
#include <lua.h>
/**
@@
-21,6
+26,12
@@
typedef struct s_sglua_buffer {
const char* sglua_tostring(lua_State* L, int index);
const char* sglua_keyvalue_tostring(lua_State* L, int key_index, int value_index);
const char* sglua_tostring(lua_State* L, int index);
const char* sglua_keyvalue_tostring(lua_State* L, int key_index, int value_index);
-void sglua_stack_dump(const char *msg, lua_State* L);
+void sglua_stack_dump(lua_State* L, const char *msg);
+static int sglua_dump_table(lua_State* L);
+void* sglua_checkudata_debug(lua_State* L, int ud, const char* tname);
const char* sglua_get_spaces(int length);
int sglua_memory_writer(lua_State* L, const void* source, size_t size, void* userdata);
const char* sglua_get_spaces(int length);
int sglua_memory_writer(lua_State* L, const void* source, size_t size, void* userdata);
+
+}
+
+#endif /* LUA_UTILS_H */