Changeset 5842:f32920b29668 in roaraudio


Ignore:
Timestamp:
01/07/13 04:13:40 (7 years ago)
Author:
phi
Branch:
default
Message:

porting to win32, "interface" seems to be something magical on win32...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/roardl.h

    r5836 r5842  
    437437#define libroar_dl_service_apitype(type) \ 
    438438union { \ 
    439  struct roar_dl_service_api interface; \ 
     439 struct roar_dl_service_api apiinterface; \ 
    440440 const struct type * api; \ 
    441441} 
     
    448448#define libroar_dl_service_free_api(api) libroar_dl_service_free_api_real((struct roar_dl_service_api *)&(api)) 
    449449 
    450 #define libroar_dl_service_run_func(obj,name,type,...) ((type[3]){(type)roar_dl_context_restore((obj).interface.lhandle), ((obj).api->name(__VA_ARGS__)), (type)roar_dl_context_store((obj).interface.lhandle)})[1] 
    451 #define libroar_dl_service_run_func_void(obj,name,...) do { roar_dl_context_restore((obj).interface.lhandle); (obj).api->name(__VA_ARGS__); roar_dl_context_store((obj).interface.lhandle); } while (0) 
     450#define libroar_dl_service_run_func(obj,name,type,...) ((type[3]){(type)roar_dl_context_restore((obj).apiinterface.lhandle), ((obj).api->name(__VA_ARGS__)), (type)roar_dl_context_store((obj).apiinterface.lhandle)})[1] 
     451#define libroar_dl_service_run_func_void(obj,name,...) do { roar_dl_context_restore((obj).apiinterface.lhandle); (obj).api->name(__VA_ARGS__); roar_dl_context_store((obj).apiinterface.lhandle); } while (0) 
    452452#define libroar_dl_service_check_func(obj,name) ((obj).api->name != NULL) 
    453453 
Note: See TracChangeset for help on using the changeset viewer.