mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
522 B
522 B
title | icon | order |
---|---|---|
Introduction | dot | 10 |
All public functions in the C API are prefixed with py_
in pocketpy.h.
PY_RAISE
macro
Mark a function that can raise an exception on failure.
- If the function returns
bool
, thenfalse
means an exception is raised. - If the function returns
int
, then-1
means an exception is raised.
PY_RETURN
macro
Mark a function that can store a value in py_retval()
on success.