1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 151 unchanged lines hidden (view full) --- 160inline std::string 161__csprintf(const std::string &format, ArgList &args) 162{ std::string s = args.dumpToString(format); delete &args; return s; } 163#define __csprintf__(format, args...) \ 164 cp::__csprintf(format, (*(new cp::ArgList), args)) 165#define csprintf(args...) \ 166 __csprintf__(args, cp::ArgListNull()) 167 |
168} 169 |
170#endif // __CPRINTF_HH__ |