[NB_MODULE]Bindind same module in different source file. #285
Answered
by
zhqrbitee
huangweiwu
asked this question in
Q&A
-
Is there any possible to bind one same module in more than one source file?
|
Beta Was this translation helpful? Give feedback.
Answered by
zhqrbitee
Aug 31, 2023
Replies: 1 comment 1 reply
-
Not sure I understand you problem. void init_a(nb::module_ &m);
NB_MODULE(my_module, m)
{
init_a(m);
} void init_a(nb::module_ &m) {
// some implementation.
}
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wjakob
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure I understand you problem.
But basically you can do something e.g. below: