RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
soa/js/testing/js_call_test.cc
00001 /* js_call_test.cc
00002    Jeremy Barnes, 19 December 2011
00003    Copyright (c) 2011 Datacratic.  All rights reserved.
00004 
00005 */
00006 
00007 #include "soa/js/js_call.h"
00008 
00009 using namespace Datacratic::JS;
00010 using namespace Datacratic;
00011 
00012 void test_that_it_compiles()
00013 {
00014     JS::JSArgs & args = *(JS::JSArgs *)0;
00015     
00016     typedef boost::function<void ()> Fn1;
00017 
00018     Fn1 fn1;
00019     callfromjs<Fn1>::call(fn1, args);
00020 
00021     typedef boost::function<int ()> Fn2;
00022 
00023     Fn2 fn2;
00024     int i JML_UNUSED = callfromjs<Fn2>::call(fn2, args);
00025 
00026     typedef boost::function<int (int)> Fn3;
00027 
00028     Fn3 fn3;
00029     i = callfromjs<Fn3>::call(fn3, args);
00030 
00031     typedef boost::function<int (int, std::string, int, int, std::string)> Fn4;
00032 
00033     Fn4 fn4;
00034     i = callfromjs<Fn4>::call(fn4, args);
00035 }
00036 
00037 int main()
00038 {
00039 }
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator