Skip to content

Commit

Permalink
Silence "implicit function declaration" warnings/errors
Browse files Browse the repository at this point in the history
Move Debug versions below the function that it calls so that the function is known.

Make the 4 shared functions extern.
  • Loading branch information
pstef authored and FCare committed Jan 5, 2025
1 parent 094aee4 commit 58352d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions yabause/src/core/sh2/sh2_kronos/src/sh2int.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,6 @@ static void outOfInt(SH2_struct *context) {
executeLastPC(context);
}

int SH2KronosInterpreterDebugInit(void)
{
int ret = SH2KronosInterpreterInit();
SH2SetExecSet(1);
return ret;
}
int SH2KronosInterpreterInit(void)
{

Expand Down Expand Up @@ -445,6 +439,12 @@ int SH2KronosInterpreterInit(void)
return 0;
}

int SH2KronosInterpreterDebugInit(void)
{
int ret = SH2KronosInterpreterInit();
SH2SetExecSet(1);
return ret;
}
//////////////////////////////////////////////////////////////////////////////

void SH2KronosInterpreterDeInit(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ extern void vdp1_compute_reset(void);
extern void vdp1_update_banding(void);
extern void vdp1_update_mesh(void);
extern void vdp1_update_performance(void);
extern void startVdp1Render(void);
extern void startVdp1RenderUpscale(void);
extern void endVdp1Render(void);
extern void endVdp1RenderUpscale(void);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 58352d6

Please sign in to comment.