Changeset c2a9854 in thomson for elec/CrO2/software/iupplusplus.h


Ignore:
Timestamp:
Feb 4, 2012, 7:43:03 PM (12 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
53c4be3
Parents:
192e299
Message:

WIP explorer

  • Fill in the block list
  • HexEditor in progress.

Commiting because I'm trying to improve iupplusplus and want to make sure I can revert it if I fail.

git-svn-id: svn://localhost/thomson@16 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • elec/CrO2/software/iupplusplus.h

    r192e299 rc2a9854  
    77#include <iup.h>
    88
    9 template<class Handler, typename... Args> class Callback
     9template<class Handler, typename ret = int, typename... Args> class Callback
    1010{
    11         typedef int(Handler::*T)(Args... args);
     11        typedef ret(Handler::*T)(Args... args);
    1212
    1313        public:
     
    2727                }
    2828
    29                 static int call(Ihandle* that, Args... args)
     29                static ret call(Ihandle* that, Args... args)
    3030                {
    3131                        Callback* call = (Callback*)IupGetAttribute(that, "LCALLBACK");
Note: See TracChangeset for help on using the changeset viewer.