def test_embind_2(self):
    self.emcc_args += ['--bind', '--post-js', 'post.js']
    create_test_file('post.js', "\n      function printLerp() {\n          out('lerp ' + Module.lerp(100, 200, 66) + '.');\n      }\n    ")
    src = '\n      #include <stdio.h>\n      #include <emscripten.h>\n      #include <emscripten/bind.h>\n      using namespace emscripten;\n      int lerp(int a, int b, int t) {\n          return (100 - t) * a + t * b;\n      }\n      EMSCRIPTEN_BINDINGS(my_module) {\n          function("lerp", &lerp);\n      }\n      int main(int argc, char **argv) {\n          EM_ASM(printLerp());\n          return 0;\n      }\n    '
    self.do_run(src, 'lerp 166')
def test_embind_2(self):
    self.emcc_args += ['--bind', '--post-js', 'post.js']
    create_test_file('post.js', "\n      function printLerp() {\n          out('lerp ' + Module.lerp(100, 200, 66) + '.');\n      }\n    ")
    src = '\n      #include <stdio.h>\n      #include <emscripten.h>\n      #include <emscripten/bind.h>\n      using namespace emscripten;\n      int lerp(int a, int b, int t) {\n          return (100 - t) * a + t * b;\n      }\n      EMSCRIPTEN_BINDINGS(my_module) {\n          function("lerp", &lerp);\n      }\n      int main(int argc, char **argv) {\n          EM_ASM(printLerp());\n          return 0;\n      }\n    '
    self.do_run(src, 'lerp 166')