Rename mj_stackAllocByte to mj_stackAlloc and make it public.
PiperOrigin-RevId: 561133040 Change-Id: I4f5ffe51c1287aa0c82af68bfe17ed6dd2ad09da
This commit is contained in:
committed by
Copybara-Service
parent
a48e0aa355
commit
4c899b92cc
@@ -21,19 +21,10 @@
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#elif !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
|
||||
// No C11 support in Visual Studio 2019 update 7 and earlier.
|
||||
// However, MSVC allows C++ alignas to be used in C code, so
|
||||
// we can just skip the #include <stdalign.h>.
|
||||
#ifndef _MSC_VER
|
||||
#error "Compiler does not support C11."
|
||||
#endif
|
||||
#else
|
||||
#include <stdalign.h>
|
||||
#endif
|
||||
|
||||
struct mjCollisionTree_ {
|
||||
alignas(mjtNum) int node1;
|
||||
int node1;
|
||||
int node2;
|
||||
};
|
||||
typedef struct mjCollisionTree_ mjCollisionTree;
|
||||
|
||||
Reference in New Issue
Block a user