我有一个如下的程序结构:
int firstFunction(unsigned char *firstValue, int s, int t)
{
CppFunction *cpp=CppFunction::create(firstValue, s, t, 0);
}
我将如何采取 NSLog 的cpp
?
我有一个如下的程序结构:
int firstFunction(unsigned char *firstValue, int s, int t)
{
CppFunction *cpp=CppFunction::create(firstValue, s, t, 0);
}
我将如何采取 NSLog 的cpp
?
您可以记录某些值CppFunction
,查看示例
int firstFunction(unsigned char *firstValue ,int s,int t)
{
CppFunction *cpp=CppFunction::create(firstValue, s, t,0);
NSLog(@"Log some integers %d", cpp->SomeInteger);
//charArray[100] for example
NSLog(@"Log some char array %s", cpp->charArray);
//or for example log a string description function
//myDescription will return a custom char array description of your class
NSLog(@"Log some char array %s", cpp->myDescription());
}