Skip to content

Commit 0bef26f

Browse files
committed
Write limitation [ci skip]
1 parent 5e1cf0b commit 0bef26f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Contribution Guide
22
## Add wrapper function for C
3+
### Limitation
4+
Go variable-length arguments cannot be passed directly to C functions
5+
6+
e.g. `void rb_raise(VALUE exc, const char *fmt, ...)`
7+
8+
To avoid this problem, we need to call the C function without variable-length arguments
9+
10+
See `RbRaise` implementation in [ruby-internal-error.go](ruby-internal-error.go) for details
11+
312
### 1. Generate skeleton
413
Run `ruby _scripts/dump_ruby_c_functions.rb`
514

0 commit comments

Comments
 (0)