Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the C API higher level #2650

Open
wants to merge 9 commits into
base: api
Choose a base branch
from
Open

Make the C API higher level #2650

wants to merge 9 commits into from

Conversation

ferdonline
Copy link
Member

@ferdonline ferdonline commented Jan 6, 2024

This PR builds on #2357 and makes the API higher level and easier to use.

It was lightly inspired by Python C Api, namely function/method calls expect all parameters as var-args so the user doesn't mess with the stack.

Scope

  • Definition of an argument passing format
  • Make function call use the format and variable number of args
  • Do error handling

Tests

  • Unit tests adapted accordingly. Please refer to them to see user facing impact.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@ferdonline ferdonline requested a review from 1uc January 7, 2024 21:59
Copy link

✔️ 509d520 -> Azure artifacts URL

Copy link

✔️ dd1569a -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

By default Neuron functions return double. However, some internal
functions can retuen also Objects or Strings (STRINGFUNC and OBJECTFUNC)
Unfortuinately those cases are not supported directly and for the moment
we issue a warning.
Copy link

✔️ 37c4ecf -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

Conflicts:
	src/nrniv/neuronapi.cpp
	src/nrniv/neuronapi.h
	test/api/hh_sim.cpp
	test/api/netcon.cpp
	test/api/sections.c
	test/api/test_common.h
	test/api/vclamp.cpp
Copy link

sonarcloud bot commented Jan 30, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

37 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

✔️ deb29fb -> Azure artifacts URL

@ferdonline ferdonline marked this pull request as ready for review January 31, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants