mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[util] Add macro for using vectors with scanf
This commit is contained in:
parent
2cc30f9dfd
commit
0da3b35ef5
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ extern const vec_t *const vec3_origin;
|
|||
|
||||
//For printf etc
|
||||
#define VectorExpand(v) (v)[0], (v)[1], (v)[2]
|
||||
//For scanf etc
|
||||
#define VectorExpandAddr(v) &(v)[0], &(v)[1], &(v)[2]
|
||||
|
||||
/*
|
||||
* VectorDistance, the distance between two points.
|
||||
|
|
Loading…
Reference in a new issue