Ignore:
Timestamp:
05/29/15 12:12:47 (10 years ago)
Author:
epyon
Message:
  • important fix in reverse_iterator operators
  • std::string functions removed or converted to string_ref in string.hh
  • capi.hh - more function forwards and usage of them instead of libc
  • more std removal
  • assert fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_area.cc

    r374 r378  
    88
    99#include "nv/lua/lua_raw.hh"
    10 #include "nv/stl/string.hh"
    1110#include "nv/core/random.hh"
    1211
     
    325324{
    326325        nv::rectangle a = to_area( L, 1 );
    327         std::string s = "(";
    328         s += nv::to_string(a.ul.x);
    329         s += ",";
    330         s += nv::to_string(a.ul.y);
    331         s += "x";
    332         s += nv::to_string(a.lr.x);
    333         s += ",";
    334         s += nv::to_string(a.lr.y);
    335         s += ")";
    336         lua_pushstring( L, s.c_str() );
     326        lua_pushfstring( L, "(%d,%dx%d,%d)", a.ul.x, a.ul.y, a.lr.x, a.lr.y );
    337327        return 1;
    338328}
Note: See TracChangeset for help on using the changeset viewer.