Commit 475d36b5 authored by wlav's avatar wlav
Browse files

fixup dummy backend for testing to the updated API

--HG--
branch : cppyy-dev
parent a2936bb15a8b
......@@ -334,8 +334,12 @@ def load_backend(space):
else:
# try usual lookups
try:
state.backend = W_Library(space, space.newtext(backend_library+backend_ext), dldflags)
except Exception:
if backend_library[-len(backend_ext):] == backend_ext:
fullname = backend_library
else:
fullname = backend_library+backend_ext
state.backend = W_Library(space, space.newtext(fullname), dldflags)
except Exception as e:
# TODO: where to find the value '.pypy-41'? Note that this only matters for testing.
state.backend = W_Library(space, space.newtext(backend_library+'.pypy-41'+backend_ext), dldflags)
......
......@@ -2,6 +2,7 @@
#define CPPYY_CAPI
#include <stddef.h>
#include <stdint.h>
#include "src/precommondefs.h"
#ifdef __cplusplus
......@@ -172,9 +173,9 @@ extern "C" {
int cppyy_is_const_method(cppyy_method_t);
RPY_EXTERN
int get_num_templated_methods(cppyy_scope_t scope);
int cppyy_get_num_templated_methods(cppyy_scope_t scope);
RPY_EXTERN
char* get_templated_method_name(cppyy_scope_t scope, cppyy_index_t imeth);
char* cppyy_get_templated_method_name(cppyy_scope_t scope, cppyy_index_t imeth);
RPY_EXTERN
int cppyy_exists_method_template(cppyy_scope_t scope, const char* name);
RPY_EXTERN
......
......@@ -1023,6 +1023,10 @@ char* cppyy_method_prototype(cppyy_scope_t, cppyy_method_t, int /* show_formalar
return cppstring_to_cstring("");
}
int cppyy_get_num_templated_methods(cppyy_scope_t scope) {
return 0;
}
int cppyy_exists_method_template(cppyy_scope_t scope, const char* name) {
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment