函数参数
来源:互联网 发布:淘宝使用他人图片 代销 编辑:程序博客网 时间:2024/05/16 23:36
#define showAlert(format, ...) myShowAlert(__LINE__, (char *)__FUNCTION__, format, ##__VA_ARGS__)
// Simple Alert Utility
void myShowAlert(int line,char *functname, id formatstring,...)
{
va_list arglist;
if (!formatstring)return;
va_start(arglist, formatstring);
id outstring = [[[NSStringalloc] initWithFormat:formatstringarguments:arglist] autorelease];
va_end(arglist);
NSString *filename = [[NSStringstringWithCString:__FILE__ encoding:NSUTF8StringEncoding]lastPathComponent];
NSString *debugInfo = [NSStringstringWithFormat:@"%@:%d\n%s", filename, line, functname];
UIAlertView *av = [[[UIAlertViewalloc] initWithTitle:outstringmessage:debugInfo delegate:nilcancelButtonTitle:@"OK"otherButtonTitles:nil]autorelease];
[avshow];
}
http://www.cnblogs.com/rainduck/archive/2010/11/10/1873417.html
- 函数参数和参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数
- 函数参数和Catch参数
- 函数、默认参数、关键字参数
- 函数参数与函数作为参数
- 不定参数函数调用不定参数函数
- 读取 IIS日志 到 数据库
- 氢气球
- 千万不要把 bool 设计成函数参数
- 计算机类国际会议列表
- C语言之static静态变量
- 函数参数
- detail design doc spirit
- ibatis中实现批量操作
- MAC OS TXT中文乱码
- C++重载箭头操作符的理解【转】
- JQ学习日志02
- DataTable-行列转换
- struts2 配置action的method属性
- Log4j简介,例子