Forráskód Böngészése

changed to actual version c_c
added version constant

IVogel 2 éve
szülő
commit
f3cc0935b0
2 módosított fájl, 3 hozzáadás és 1 törlés
  1. 1 1
      Cargo.toml
  2. 2 0
      src/lib.rs

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "lsled"
-version = "0.1.0"
+version = "0.5.0"
 edition = "2021"
 
 [lib]

+ 2 - 0
src/lib.rs

@@ -21,6 +21,8 @@ unsafe extern "C" fn gmod13_open(state: lua_State) -> i32 {
     lua::createtable(state, 0, 1);
     lua::pushfunction(state, LDb::l_open);
     lua::setfield(state, -2, lua::cstr!("open"));
+    lua::pushstring(state, lua::cstr!("Sled 0.34.7"));
+    lua::setfield(state, -2, lua::cstr!("_VERSION"));
     lua::setfield(state, lua::GLOBALSINDEX, lua::cstr!("sled"));
     0
 }