Parcourir la Source

example: Use Push to push a value

Ole Krüger il y a 10 ans
Parent
commit
67cbfa6161
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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);