Home | History | Annotate | Download | only in examples

Lines Matching defs:field

53 /// Prints the string-typed field of a table.
55 /// If the field contains a string, this function prints its value. If the
56 /// field contains any other type, this prints an error message.
61 /// \param field The name of the string-typed field.
63 print_table_field(lutok::state& state, const std::string& field)
77 state.push_string(field);
78 // Stack contents: -2: table, -1: field name.
80 // Stack contents: -2: table, -1: field value.
83 std::cout << "The field " << field << " does not contain a string\n";
84 // Stack contents: -2: table, -1: field value.
97 std::cout << "String in field " << field << ": " << state.to_string()