rizin/libr/lang/p/lua.c
Nibble bda701d02f * r_asm
- Removed warnings
  - Added error handling to rasm2
* r_lang
  - Fixed "print help" bug
2009-02-19 18:13:34 +01:00

24 lines
471 B
C

/* lua extension for libr (radare2) */
#include "r_lib.h"
#include "r_lang.h"
static int lua_run(void *user, const char *code, int len)
{
printf("Evaluating '%s'\n", code);
return R_TRUE;
}
static struct r_lang_handle_t r_lang_plugin_lua = {
.name = "lua",
.desc = "LUA language extension",
.help = NULL,
.run = &lua_run,
.run_file = NULL,
.set_argv = NULL,
};
struct r_lib_struct_t radare_plugin = {
.type = R_LIB_TYPE_LANG,
.data = &r_lang_plugin_lua,
};