jak-project/game/kernel/common/Symbol4.h
water111 e630b50690
[ckernel] split by game version (#1559)
* temp

* split up kprint, other than format

* start kmachine

* split kmachine

* split kscheme

* split klink

* split klisten

* split remaining

* jak2 ckernel gets to nokernel loop
2022-06-26 18:17:11 -04:00

18 lines
383 B
C++

#pragma once
#include "common/common_types.h"
#include "common/util/Assert.h"
#include "game/kernel/common/Ptr.h"
template <typename T>
struct Symbol4 {
u8 foo;
T& value() { return *reinterpret_cast<T*>(&foo - 1); }
const T& value() const { return *reinterpret_cast<T*>(&foo - 1); }
const char* name_cstr() const {
ASSERT_MSG(false, "nyi");
return nullptr;
}
};