Skip to content

Commit a56b8f2

Browse files
attt
1 parent 098a817 commit a56b8f2

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

build/install_dependencies.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function Install_dependencies()
44

55
local libs = {
66
{url="https://github.com/OUIsolutions/LuaCEmbed/releases/download/v0.779/LuaCEmbed.h",path="dependencies/LuaCEmbed.h"},
7-
{url="https://github.com/OUIsolutions/SilverChain/releases/download/0.1.1/SilverChainApiNoDependenciesIncluded.h",path="dependencies/CSilverChainApiNoDependenciesIncluded.h"},
7+
{url="https://github.com/OUIsolutions/SilverChain/releases/download/0.2.1/SilverChainApiNoDependenciesIncluded.h",path="dependencies/CSilverChainApiNoDependenciesIncluded.h"},
88
{url="https://github.com/OUIsolutions/CTextEngine/releases/download/v2.002/CTextEngine.h",path="dependencies/CTextEngine.h"},
99
{url="https://github.com/OUIsolutions/DoTheWorld/releases/download/v8.002/doTheWorld.h",path="dependencies/doTheWorld.h"},
1010
{url="https://github.com/OUIsolutions/C-Cli-Entry/releases/download/0.001/CliEntry.h",path="dependencies/CliEntry.h"},

citerop.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ LuaCEmbedResponse * private_silver_chain_lua_generator_watch_mode(LuaCEmbed *arg
5151
return NULL;
5252
}
5353

54+
LuaCEmbedResponse *private_silver_chain_lua_remove(LuaCEmbed *args){
55+
char *src = LuaCEmbed_get_str_arg(args, 0);
56+
SilverCHain_remove_start_end_from_folder(src);
57+
return NULL;
58+
}
59+
5460
//============================ Errors ========================================================
5561

5662
LuaCEmbedResponse * private_silver_chain_lua_get_error_msg(LuaCEmbed *args){
@@ -69,6 +75,7 @@ LuaCEmbedResponse * private_silver_chain_lua_free_error(LuaCEmbed *args){
6975
return NULL;
7076
}
7177

78+
7279
//============================ String Array =================================================
7380
LuaCEmbedResponse * private_silver_chain_lua_new_SiverChainStringArray(LuaCEmbed *args){
7481
SilverChainStringArray *value = newSilverChainStringArray();
@@ -90,11 +97,11 @@ LuaCEmbedResponse * private_silver_chain_lua_apend_SiverChainStringArray(LuaCEmb
9097
}
9198

9299

93-
94100
int luaopen_private_silverchain_cinterop(lua_State *state){
95101
//functions will be only assescible by the required reciver
96102
LuaCEmbed * l = newLuaCEmbedLib(state);
97103
LuaCEmbed_add_callback(l, "generate", private_silver_chain_lua_generator);
104+
LuaCEmbed_add_callback(l, "remove", private_silver_chain_lua_remove);
98105
LuaCEmbed_add_callback(l, "generate_watch", private_silver_chain_lua_generator_watch_mode);
99106
LuaCEmbed_add_callback(l, "get_error_msg", private_silver_chain_lua_get_error_msg);
100107
LuaCEmbed_add_callback(l, "get_error_path", private_silver_chain_lua_get_error_path);

public/remove.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
public_lua_silverchain.remove = function(src)
3+
if not src then
4+
error("src is required")
5+
end
6+
private_silver_chain.remove(src)
7+
end

0 commit comments

Comments
 (0)