2bam

Untitled

Oct 15th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. #pragma once
  2.  
  3. #ifdef SWIG
  4.     #define SALOON_API
  5. #else
  6.     #ifdef SALOON_EXPORT
  7.         #define SALOON_API __declspec(dllexport)
  8.     #else
  9.         #define SALOON_API __declspec(dllimport)
  10.     #endif
  11. #endif
  12.  
  13. ---------------------------------------------------------------------------
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. SWIGINTERN int Swig_var_Window_set(PyObject *_val) {
  19.   {
  20.     void *argp = 0;
  21.     int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_SALOON_API,  0  | 0);
  22.     if (!SWIG_IsOK(res)) {
  23.       SWIG_exception_fail(SWIG_ArgError(res), "in variable '""Window""' of type '""SALOON_API""'");
  24.     }
  25.     if (!argp) {
  26.       SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Window""' of type '""SALOON_API""'");
  27.     } else {
  28.       SALOON_API * temp;
  29.       temp  = reinterpret_cast< SALOON_API * >(argp);
  30.       Window = *temp;
  31.       if (SWIG_IsNewObj(res)) delete temp;
  32.     }
  33.   }
  34.   return 0;
  35. fail:
  36.   return 1;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment