Files
Odin/core/c/libc/stdarg.odin
gingerBill 2fbc83d774 Fix typos
2026-04-28 15:07:56 +01:00

19 lines
559 B
Odin

package libc
// 7.16 Variable arguments
import "base:intrinsics"
va_list :: intrinsics.c_va_list
va_start :: intrinsics.c_va_start
va_end :: intrinsics.c_va_end
va_copy :: intrinsics.c_va_copy
// We cannot provide va_arg as there is no way to create "C" style procedures
// in Odin which take variable arguments the C way. The #c_vararg attribute only
// exists for foreign imports. That being said, being able to copy a va_list,
// as well as start and end one is necessary in some functions, the va_list
// taking functions in libc as an example.