Jean-Luc Brouillet | c5184e2 | 2015-03-13 13:51:24 -0700 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2015 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | header: |
| 18 | summary: Utility debugging routines |
| 19 | description: |
| 20 | Routines intended to be used during application developement. These should |
| 21 | not be used in shipping applications. All print a string and value pair to |
| 22 | the standard log. |
| 23 | include: |
| 24 | #define RS_DEBUG(a) rsDebug(#a, a) |
| 25 | #define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__) |
| 26 | end: |
| 27 | |
| 28 | function: rsDebug |
| 29 | t: i32, u32, i64, u64, f64 |
| 30 | ret: void |
| 31 | arg: const char* message |
| 32 | arg: #1 a |
| 33 | summary: |
| 34 | description: |
| 35 | Debug function. Prints a string and value to the log. |
| 36 | test: none |
| 37 | end: |
| 38 | |
| 39 | function: rsDebug |
| 40 | version: 17 |
| 41 | w: 2, 3, 4 |
| 42 | # TODO We're not doing it for f64? |
| 43 | t: i32, u32, i64, u64 |
| 44 | ret: void |
| 45 | arg: const char* message |
| 46 | arg: #2#1 a |
| 47 | test: none |
| 48 | end: |
| 49 | |
| 50 | function: rsDebug |
| 51 | w: 1, 2, 3, 4 |
| 52 | ret: void |
| 53 | arg: const char* message |
| 54 | arg: float#1 a |
| 55 | test: none |
| 56 | end: |
| 57 | |
| 58 | function: rsDebug |
| 59 | version: 17 |
| 60 | w: 1, 2, 3, 4 |
| 61 | t: i8, u8, i16, u16 |
| 62 | ret: void |
| 63 | arg: const char* message |
| 64 | arg: #2#1 a |
| 65 | test: none |
| 66 | end: |
| 67 | |
| 68 | function: rsDebug |
| 69 | ret: void |
| 70 | arg: const char* message |
| 71 | arg: float a |
| 72 | arg: float b |
| 73 | test: none |
| 74 | end: |
| 75 | |
| 76 | function: rsDebug |
| 77 | ret: void |
| 78 | arg: const char* message |
| 79 | arg: float a |
| 80 | arg: float b |
| 81 | arg: float c |
| 82 | test: none |
| 83 | end: |
| 84 | |
| 85 | function: rsDebug |
| 86 | ret: void |
| 87 | arg: const char* message |
| 88 | arg: float a |
| 89 | arg: float b |
| 90 | arg: float c |
| 91 | arg: float d |
| 92 | test: none |
| 93 | end: |
| 94 | |
| 95 | function: rsDebug |
| 96 | ret: void |
| 97 | arg: const char* message |
| 98 | arg: long long a |
| 99 | test: none |
| 100 | end: |
| 101 | |
| 102 | function: rsDebug |
| 103 | ret: void |
| 104 | arg: const char* message |
| 105 | arg: unsigned long long a |
| 106 | test: none |
| 107 | end: |
| 108 | |
| 109 | function: rsDebug |
| 110 | ret: void |
| 111 | arg: const char* message |
| 112 | arg: const void* a |
| 113 | test: none |
| 114 | end: |
| 115 | |
| 116 | function: rsDebug |
| 117 | ret: void |
| 118 | arg: const char* message |
| 119 | arg: const rs_matrix4x4* a |
| 120 | test: none |
| 121 | end: |
| 122 | |
| 123 | function: rsDebug |
| 124 | ret: void |
| 125 | arg: const char* message |
| 126 | arg: const rs_matrix3x3* a |
| 127 | test: none |
| 128 | end: |
| 129 | |
| 130 | function: rsDebug |
| 131 | ret: void |
| 132 | arg: const char* message |
| 133 | arg: const rs_matrix2x2* a |
| 134 | test: none |
| 135 | end: |
| 136 | |
| 137 | #define RS_DEBUG(a) rsDebug(#a, a) |
| 138 | #define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__) |