address review comments

- use relative includes for cglm/call/ headers
 - explicitly include stdio in cglm/call/io.h
 - update call documentation
This commit is contained in:
Davide Del Zompo
2026-04-18 10:11:03 +03:00
parent 454f032310
commit a97af506ce
47 changed files with 50 additions and 48 deletions
+3 -2
View File
@@ -15,5 +15,6 @@ It would be duplicate documentation also it
would be hard to sync documentation between inline and call version for me. would be hard to sync documentation between inline and call version for me.
By including **clgm/cglm.h** you include all inline versions. To get precompiled By including **clgm/cglm.h** you include all inline versions. To get precompiled
versions you need to include **cglm/call.h** header it also includes all versions you need to include **cglm/call.h** header. When using the
call versions plus *clgm/cglm.h* (inline versions) precompiled versions, explicitly including **cglm/cglm.h** is still necessary
for the inline versions to be included.
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
/* DEPRECATED! use _diag */ /* DEPRECATED! use _diag */
#define glmc_aabb2d_size(aabb) glmc_aabb2d_diag(aabb) #define glmc_aabb2d_size(aabb) glmc_aabb2d_diag(aabb)
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
float float
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
float float
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
float float
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+2 -1
View File
@@ -12,7 +12,8 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
#include <stdio.h>
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
/* DEPRECATED! use _copy, _ucopy versions */ /* DEPRECATED! use _copy, _ucopy versions */
#define glmc_mat3_dup(mat, dest) glmc_mat3_copy(mat, dest) #define glmc_mat3_dup(mat, dest) glmc_mat3_copy(mat, dest)
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
/* DEPRECATED! use _copy, _ucopy versions */ /* DEPRECATED! use _copy, _ucopy versions */
#define glmc_mat4_udup(mat, dest) glmc_mat4_ucopy(mat, dest) #define glmc_mat4_udup(mat, dest) glmc_mat4_ucopy(mat, dest)
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
float float
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
bool bool
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
float float
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
CGLM_EXPORT CGLM_EXPORT
void void
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
/* DEPRECATED! use _copy, _ucopy versions */ /* DEPRECATED! use _copy, _ucopy versions */
#define glmc_vec_dup(v, dest) glmc_vec3_copy(v, dest) #define glmc_vec_dup(v, dest) glmc_vec3_copy(v, dest)
+1 -1
View File
@@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
#include "cglm/common.h" #include "../common.h"
/* DEPRECATED! use _copy, _ucopy versions */ /* DEPRECATED! use _copy, _ucopy versions */
#define glmc_vec4_dup3(v, dest) glmc_vec4_copy3(v, dest) #define glmc_vec4_dup3(v, dest) glmc_vec4_copy3(v, dest)