Beispiel #1
0
expression make_sizeof_type(location loc, asttype t)
{
  expression result = CAST(expression, new_sizeof_type(parse_region, loc, t));
  check_sizeof(result, t->type);
  return result;
}
Beispiel #2
0
int main(int argc, char const *argv[])
 {
  print< ::color::rgb< ::color::type::split422_t >::category_type  >();
  print< ::color::rgb< ::color::type::split242_t >::category_type  >();
  print< ::color::rgb< ::color::type::split224_t >::category_type  >();

  print< ::color::bgr< ::color::type::split422_t >::category_type  >();
  print< ::color::bgr< ::color::type::split242_t >::category_type  >();
  print< ::color::bgr< ::color::type::split224_t >::category_type  >();

  print< ::color::abgr< ::color::type::split2AAA_t >::category_type  >();
  print< ::color::bgra< ::color::type::splitAAA2_t >::category_type  >();

  print< ::color::rgba< ::color::type::splitAAA2_t >::category_type  >();
  print< ::color::argb< ::color::type::split2AAA_t >::category_type  >();

  sandbox_test();

  extern void test_constant();
  test_constant();

  extern void check_sizeof();
  check_sizeof();

  void test_operation();
  test_operation();

  void image_conversion();
  image_conversion();

  test_pallete();

  ctor_test();

  void main_place();
  main_place();

  void check_get();
  check_get();

  extern int gray_test( int argc, char const *argv[] );
  gray_test( argc, argv );

  extern int decompose_test( int argc, char const *argv[] );
  decompose_test( argc, argv );

  extern void print_bound();
  print_bound();

  make_blue();

  invoke();

  extern void check_conversion();
  check_conversion();

  void make_test_gray_scale();
  make_test_gray_scale();

  void test_set_invoke();
  test_set_invoke();

  void test_get_invoke( double value );
  test_get_invoke(0.5);

  return 0;
 }
Beispiel #3
0
expression make_sizeof_expr(location loc, expression e)
{
  expression result = CAST(expression, new_sizeof_expr(parse_region, loc, e));
  check_sizeof(result, e->type);
  return result;
}