Skip to content

Commit

Permalink
test macro
Browse files Browse the repository at this point in the history
  • Loading branch information
stinos committed Nov 13, 2023
1 parent a00c9d5 commit 5d1e6c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/usercmodule/cppexample/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ extern "C" {
// Here we implement the function using C++ code, but since it's
// declaration has to be compatible with C everything goes in extern "C" scope.
mp_obj_t cppfunc(mp_obj_t a_obj, mp_obj_t b_obj) {
if (mp_obj_is_float(a_obj)) {
}
// Prove we have (at least) C++11 features.
const auto a = mp_obj_get_int(a_obj);
const auto b = mp_obj_get_int(b_obj);
Expand Down

0 comments on commit 5d1e6c5

Please sign in to comment.