mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-03 13:03:22 +00:00
FEXLinuxTests: Simplify a few extern "C" declarations
This commit is contained in:
parent
78cb2cd9fc
commit
f246e9864c
@ -9,9 +9,8 @@
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
|
||||
extern "C" {
|
||||
extern void IntInstruction();
|
||||
}
|
||||
extern "C" void IntInstruction();
|
||||
|
||||
__attribute__((naked, nocf_check))
|
||||
static void InvalidINT() {
|
||||
__asm volatile(R"(
|
||||
|
@ -9,9 +9,8 @@
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
|
||||
extern "C" {
|
||||
extern void IntInstruction();
|
||||
}
|
||||
extern "C" void IntInstruction();
|
||||
|
||||
__attribute__((naked, nocf_check))
|
||||
static void InvalidINT() {
|
||||
__asm volatile(R"(
|
||||
|
@ -9,9 +9,8 @@
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
|
||||
extern "C" {
|
||||
extern void IntInstruction();
|
||||
}
|
||||
extern "C" void IntInstruction();
|
||||
|
||||
__attribute__((naked, nocf_check))
|
||||
static void InvalidINT() {
|
||||
__asm volatile(R"(
|
||||
|
@ -9,9 +9,8 @@
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
|
||||
extern "C" {
|
||||
extern void IntInstruction();
|
||||
}
|
||||
extern "C" void IntInstruction();
|
||||
|
||||
__attribute__((naked, nocf_check))
|
||||
static void InvalidINT() {
|
||||
__asm volatile(R"(
|
||||
|
@ -9,9 +9,8 @@
|
||||
#include <stdio.h>
|
||||
#include <cstdlib>
|
||||
|
||||
extern "C" {
|
||||
extern void IntInstruction();
|
||||
}
|
||||
extern "C" void IntInstruction();
|
||||
|
||||
__attribute__((naked, nocf_check))
|
||||
static void InvalidINT() {
|
||||
__asm volatile(R"(
|
||||
|
@ -9,9 +9,8 @@
|
||||
#include <cstdint>
|
||||
#include <syscall.h>
|
||||
|
||||
extern "C" {
|
||||
extern void IntInstruction();
|
||||
}
|
||||
extern "C" void IntInstruction();
|
||||
|
||||
__attribute__((naked))
|
||||
static void CauseInt() {
|
||||
__asm volatile(R"(
|
||||
|
@ -8,9 +8,8 @@
|
||||
#include <unistd.h>
|
||||
#include <cstdint>
|
||||
|
||||
extern "C" {
|
||||
extern void IntInstruction();
|
||||
}
|
||||
extern "C" void IntInstruction();
|
||||
|
||||
__attribute__((naked, nocf_check))
|
||||
static void CauseInt() {
|
||||
__asm volatile(R"(
|
||||
|
Loading…
x
Reference in New Issue
Block a user