MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / keep_memory

Function keep_memory

extlibs/catch/include/catch/catch.hpp:6270–6272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6268#if defined(__GNUC__) || defined(__clang__)
6269 template <typename T>
6270 inline void keep_memory(T* p) {
6271 asm volatile("" : : "g"(p) : "memory");
6272 }
6273 inline void keep_memory() {
6274 asm volatile("" : : : "memory");
6275 }

Callers 2

optimizer_barrierFunction · 0.85
deoptimize_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected