Changeset 78 for trunk/tests


Ignore:
Timestamp:
06/01/13 23:50:55 (12 years ago)
Author:
epyon
Message:
  • types.hh - basing totally on typeid now
  • types.hh - removed hash_string and name registration defines (get_type_name template)
  • types.hh - name is defined at registration via create_type
  • types.hh - overall the code is much cleaner now
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/lualib_test/lualib_test.cc

    r76 r78  
    1717};
    1818
    19 NV_REGISTER_NAME( test_struct )
    20 
    2119int main(int, char* [])
    2220{
    23         nv::type_database db;
    24         nv::object::register_type( &db );
    25 
    26         db.create_type<int>();
    27         db.create_type<std::string>();
    28         nv::type_field fields[] = {
    29                 nv::type_field("f", &test_struct::f ),
    30                 nv::type_field("i", &test_struct::i ),
    31         };
    32         db.create_type<test_struct>().fields( fields );
    33 
    3421        nv::logger log(nv::LOG_TRACE);
    3522        log.add_sink( new nv::log_file_sink("log.txt"), nv::LOG_TRACE );
Note: See TracChangeset for help on using the changeset viewer.