inline -> static inline

This commit is contained in:
2026-07-16 12:31:29 +10:00
parent 05a458782d
commit 92f2cddb99

View File

@@ -1,12 +1,12 @@
#include "emu.h"
inline Instruction fetchInst(Emulator* emu) {
static inline Instruction fetchInst(Emulator* emu) {
Instruction inst = decodeInstruction(emu->mem, &emu->pc);
printf("%s\n", instructionToCStr(inst));
return inst;
}
inline void updateFlagsRegister(Emulator* emu, int32_t value) {
static inline void updateFlagsRegister(Emulator* emu, int32_t value) {
if (value == 0) {
emu->regs[REG_F] = FLAG_ZERO;
} else if (value < 0) {
@@ -169,4 +169,4 @@ Emulator* initEmulator(uint32_t memorySize) {
void freeEmulator(Emulator* emu) {
freeMemory(emu->mem);
free(emu);
}
}