Explorar o código

example: Use Push to push a value

Ole Krüger %!s(int64=10) %!d(string=hai) anos
pai
achega
67cbfa6161
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);