Selaa lähdekoodia

example: Use Push to push a value

Ole Krüger 10 vuotta sitten
vanhempi
commit
67cbfa6161
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      examples/types.cpp

+ 2 - 2
examples/types.cpp

@@ -46,8 +46,8 @@ int main() {
 	luaL_openlibs(state);
 
 	// Build stack
-	Value<char>::Push(state, 'H');
-	Value<char>::Push(state, 'i');
+	Push(state, 'H');
+	Push(state, 'i');
 
 	// Apply function to stack values
 	Apply(state, read_chars);