remove gratuituous c++ dependency

This commit is contained in:
Zack Buhman 2023-06-26 22:29:39 +00:00
parent d41a42dca4
commit 123653fda1
8 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,5 @@
#pragma once
#include "type.h"
struct cr_rr {

2
scsp.h
View File

@ -1,3 +1,5 @@
#pragma once
#include "type.h"
// Because the main CPU cannot access in units of 8 bits, so read and write in

2
scu.h
View File

@ -1,3 +1,5 @@
#pragma once
#include "type.h"
typedef struct scu_reg {

2
sh2.h
View File

@ -2,8 +2,6 @@
#include "type.h"
#include <cstddef>
typedef struct sh2_reg {
reg8 SMR; // 0x000
reg8 BRR; // 0x001

2
smpc.h
View File

@ -1,3 +1,5 @@
#pragma once
#include "type.h"
struct ioreg {

2
type.h
View File

@ -1,8 +1,8 @@
#include <stddef.h>
#include <stdint.h>
#ifndef __cplusplus
#define static_assert _Static_assert
#define offsetof __builtin_offsetof
#endif
typedef volatile uint8_t reg8;

2
vdp1.h
View File

@ -1,3 +1,5 @@
#pragma once
#include "type.h"
/* command table */

2
vdp2.h
View File

@ -1,3 +1,5 @@
#pragma once
#include "type.h"
/* memory offsets */