LCOV - code coverage report
Current view: top level - src/compiler - coerce.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 1 100.0 %
Date: 2016-11-30 13:12:14 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : #ifndef COERCE_H
       2                 :            : #define COERCE_H
       3                 :            : 
       4                 :            : #include <assert.h>
       5                 :            : 
       6                 :            : #include "symbols.h"
       7                 :            : #include "parser.h"
       8                 :            : 
       9                 :            : int __flatcc_fb_coerce_scalar_type(fb_parser_t *P,
      10                 :            :         fb_symbol_t *sym, fb_scalar_type_t st, fb_value_t *value);
      11                 :            : #define fb_coerce_scalar_type __flatcc_fb_coerce_scalar_type
      12                 :            : 
      13                 :            : static inline size_t sizeof_scalar_type(fb_scalar_type_t st)
      14                 :            : {
      15                 :            :     static const int scalar_type_size[] = {
      16                 :            :         0, 8, 4, 2, 1, 1, 8, 4, 2, 1, 8, 4
      17                 :            :     };
      18                 :            : 
      19                 :        339 :     return scalar_type_size[st];
      20                 :            : }
      21                 :            : 
      22                 :            : #endif /* COERCE_H */

Generated by: LCOV version 1.12