Changeset 121 for trunk/src/io_event.cc


Ignore:
Timestamp:
06/15/13 17:47:57 (12 years ago)
Author:
epyon
Message:
  • Nova builds with -Weverything/-Wall/-pedantic/etc on: on MSVC 2012 on GCC 4.6.3 on clang 3.2
  • ... without a single fucking warning.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/io_event.cc

    r78 r121  
    99using namespace nv;
    1010
    11 const char* get_key_name( key_code key )
     11const char* nv::get_key_name( key_code key )
    1212{
    1313        switch ( key )
     
    1616#               include <nv/detail/key_list.inc>
    1717#       undef NV_KEY
    18 default: return "KEY_UNKNOWN";
     18        NV_RETURN_COVERED_DEFAULT( "KEY_UNKNOWN" );
    1919        };
    2020}
    2121
    22 const char* get_mouse_name( mouse_code button )
     22const char* nv::get_mouse_name( mouse_code button )
    2323{
    2424        switch ( button )
     
    2727#               include <nv/detail/mouse_list.inc>
    2828#       undef NV_MOUSE
    29 default: return "MOUSE_UNKNOWN";
     29        NV_RETURN_COVERED_DEFAULT( "MOUSE_UNKNOWN" );
    3030        };
    3131}
    3232
    33 const char* get_io_event_name( io_event_code event )
     33const char* nv::get_io_event_name( io_event_code event )
    3434{
    3535        switch ( event )
     
    3838#               include <nv/detail/io_event_list.inc>
    3939#       undef NV_IO_EVENT
    40 default: return "EV_UNKNOWN";
     40        NV_RETURN_COVERED_DEFAULT( "EV_UNKNOWN" );
    4141        };
    4242}
    4343
    44 void register_io_types( type_database* db )
     44void nv::register_io_types( type_database* db )
    4545{
    4646        type_enum key_enums[] = {
Note: See TracChangeset for help on using the changeset viewer.