/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_debug.rsh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 The Android Open Source Project
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00026 #ifndef __RS_DEBUG_RSH__
00027 #define __RS_DEBUG_RSH__
00028 
00029 
00033 extern void __attribute__((overloadable))
00034     rsDebug(const char *, float);
00038 extern void __attribute__((overloadable))
00039     rsDebug(const char *, float, float);
00043 extern void __attribute__((overloadable))
00044     rsDebug(const char *, float, float, float);
00048 extern void __attribute__((overloadable))
00049     rsDebug(const char *, float, float, float, float);
00053 extern void __attribute__((overloadable))
00054     rsDebug(const char *, float2);
00058 extern void __attribute__((overloadable))
00059     rsDebug(const char *, float3);
00063 extern void __attribute__((overloadable))
00064     rsDebug(const char *, float4);
00068 extern void __attribute__((overloadable))
00069     rsDebug(const char *, double);
00073 extern void __attribute__((overloadable))
00074     rsDebug(const char *, const rs_matrix4x4 *);
00078 extern void __attribute__((overloadable))
00079     rsDebug(const char *, const rs_matrix3x3 *);
00083 extern void __attribute__((overloadable))
00084     rsDebug(const char *, const rs_matrix2x2 *);
00088 extern void __attribute__((overloadable))
00089     rsDebug(const char *, int);
00093 extern void __attribute__((overloadable))
00094     rsDebug(const char *, uint);
00098 extern void __attribute__((overloadable))
00099     rsDebug(const char *, long);
00103 extern void __attribute__((overloadable))
00104     rsDebug(const char *, unsigned long);
00108 extern void __attribute__((overloadable))
00109     rsDebug(const char *, long long);
00113 extern void __attribute__((overloadable))
00114     rsDebug(const char *, unsigned long long);
00118 extern void __attribute__((overloadable))
00119     rsDebug(const char *, const void *);
00120 
00121 #if (defined(RS_VERSION) && (RS_VERSION >= 17))
00122 
00125 extern void __attribute__((overloadable))
00126     rsDebug(const char *, char);
00130 extern void __attribute__((overloadable))
00131     rsDebug(const char *, char2);
00135 extern void __attribute__((overloadable))
00136     rsDebug(const char *, char3);
00140 extern void __attribute__((overloadable))
00141     rsDebug(const char *, char4);
00145 extern void __attribute__((overloadable))
00146     rsDebug(const char *, unsigned char);
00150 extern void __attribute__((overloadable))
00151     rsDebug(const char *, uchar2);
00155 extern void __attribute__((overloadable))
00156     rsDebug(const char *, uchar3);
00160 extern void __attribute__((overloadable))
00161     rsDebug(const char *, uchar4);
00165 extern void __attribute__((overloadable))
00166     rsDebug(const char *, short);
00170 extern void __attribute__((overloadable))
00171     rsDebug(const char *, short2);
00175 extern void __attribute__((overloadable))
00176     rsDebug(const char *, short3);
00180 extern void __attribute__((overloadable))
00181     rsDebug(const char *, short4);
00185 extern void __attribute__((overloadable))
00186     rsDebug(const char *, unsigned short);
00190 extern void __attribute__((overloadable))
00191     rsDebug(const char *, ushort2);
00195 extern void __attribute__((overloadable))
00196     rsDebug(const char *, ushort3);
00200 extern void __attribute__((overloadable))
00201     rsDebug(const char *, ushort4);
00205 extern void __attribute__((overloadable))
00206     rsDebug(const char *, int2);
00210 extern void __attribute__((overloadable))
00211     rsDebug(const char *, int3);
00215 extern void __attribute__((overloadable))
00216     rsDebug(const char *, int4);
00220 extern void __attribute__((overloadable))
00221     rsDebug(const char *, uint2);
00225 extern void __attribute__((overloadable))
00226     rsDebug(const char *, uint3);
00230 extern void __attribute__((overloadable))
00231     rsDebug(const char *, uint4);
00235 extern void __attribute__((overloadable))
00236     rsDebug(const char *, long2);
00240 extern void __attribute__((overloadable))
00241     rsDebug(const char *, long3);
00245 extern void __attribute__((overloadable))
00246     rsDebug(const char *, long4);
00250 extern void __attribute__((overloadable))
00251     rsDebug(const char *, ulong2);
00255 extern void __attribute__((overloadable))
00256     rsDebug(const char *, ulong3);
00260 extern void __attribute__((overloadable))
00261     rsDebug(const char *, ulong4);
00262 #endif  // (defined(RS_VERSION) && (RS_VERSION >= 17))
00263 
00264 #define RS_DEBUG(a) rsDebug(#a, a)
00265 #define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__)
00266 
00267 #endif