Text output plugin argument parsing
[babeltrace.git] / include / babeltrace / compiler.h
index 2211fe3ad8498c6719124c60ce39e4144871481a..4eaa0e6ebb17a2555c08f69b56920671cc4dfc04 100644 (file)
  *
  * The above copyright notice and this permission notice shall be included in
  * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
  */
 
 #include <stddef.h>    /* for offsetof */
@@ -29,4 +37,6 @@
        })
 #endif
 
+#define BT_ARRAY_SIZE(arr)     (sizeof(arr) / sizeof((arr)[0]))
+
 #endif /* _BABELTRACE_COMPILER_H */
This page took 0.026837 seconds and 4 git commands to generate.