~hikiko/nux/arb-srgba-shader

« back to all changes in this revision

Viewing changes to NuxCore/NPrintf.cpp

  • Committer: Neil Jagdish Patel
  • Date: 2010-09-01 19:25:37 UTC
  • Revision ID: neil.patel@canonical.com-20100901192537-mfz7rm6q262pewg6
Import and build NuxCore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "NKernel.h"
 
2
#include "NPrintf.h"
 
3
 
 
4
NAMESPACE_BEGIN
 
5
 
 
6
NString inlPrintf(const TCHAR *Format, ...)
 
7
{
 
8
    TCHAR Result[4096];
 
9
        GET_VARARGS(Result, 4096, INL_ARRAY_COUNT(Result) - 1, Format);
 
10
        return NString(Result);
 
11
}
 
12
 
 
13
NAMESPACE_END
 
14
 
 
15
// see also: http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/csh/printf.c
 
16