mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
e630b50690
* 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
18 lines
383 B
C++
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;
|
|
}
|
|
};
|