aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eolian_js/eolian_js_test_eolian_js_binding.cc
blob: dbdd016a344212737e7a16e89007bec316c797ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <Eo_Js.hh>
#include <Eina.hh>
#include <Eo.hh>

#include <check.h>


#include <iostream>
#include <cassert>
#include <fstream>

typedef struct _Elm_Calendar_Mark Elm_Calendar_Mark;

#include "constructor_method_class.eo.js.cc"
#include "test_object.eo.js.cc"

#ifdef EAPI
# undef EAPI
#endif

#ifdef _WIN32
#  define EAPI __declspec(dllimport)
#else
# ifdef __GNUC__
#  if __GNUC__ >= 4
#   define EAPI __attribute__ ((visibility("default")))
#  else
#   define EAPI
#  endif
# else
#  define EAPI
# endif
#endif /* ! _WIN32 */

void eolian_js_test_register_eolian_js_binding(v8::Handle<v8::Object> exports)
{
  v8::Isolate* isolate = v8::Isolate::GetCurrent();
  test::register_object(exports, isolate);
  register_constructor_method_class(exports, isolate);
}