set_print

This commit is contained in:
yejian 2023-09-17 13:06:52 +08:00 committed by Gordon
parent 2ee9b33e11
commit 43d7d4ebe9
2 changed files with 313 additions and 281 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,10 +3,19 @@ package main
/*
#include <stdio.h>
#include <stdlib.h>
typedef void (*CB_S)(char *);
typedef void (*CB_I_S)(int,char *);
typedef void (*CB_S_I_S_S)(char *,int,char *,char *);
typedef void (*CB_S_I_S_S_I)(char *,int,char *,char *,int);
CB_S DebugPrint;
void Call_CB_S(CB_S func,char* data)
{
func(data);
}
void Call_CB_I_S(CB_I_S func,int event,char* data)
{
func(event,data);