Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
26.c.math.cpp File Reference
#include <cstdlib>
#include <cmath>
#include <rw_any.h>
#include <rw_driver.h>
#include <rw_valcmp.h>
Include dependency graph for 26.c.math.cpp:

Go to the source code of this file.

Macros

#define FUN_1(name)
 
#define FUN_2(name)
 
#define FUN_2_PTR(name)
 
#define FUN_2_INT(name)
 
#define FUN_2_PINT(name)
 
#define CHECK_OVERLOADS(name)
 

Functions

 _RWSTD_NAMESPACE (std)
 
int run_test (int, char *[])
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ CHECK_OVERLOADS

#define CHECK_OVERLOADS (   name)
Value:
rw_info (0, 0, __LINE__, "std::%s() overloads ", #name); \
(void)name (f); \
(void)name (d); \
(void)name (ld)
#define d
Definition 17.names.cpp:115
#define f
Definition 17.names.cpp:119
const char * name
Definition codecvt1.cpp:72
_TEST_EXPORT int rw_info(int, const char *, int, const char *,...)
Definition driver.cpp:1681

◆ FUN_1

#define FUN_1 (   name)
Value:
template <class T> \
T name (T) { \
static const char* const tname = rw_any_t (T ()).type_name (); \
rw_assert (0, 0, __LINE__, "std::%s(%s) not declared\n", \
#name, tname); \
return T (); \
} typedef void unused_typedef
#define T
Definition 17.names.cpp:163
const char * type_name() const
Definition any.cpp:310

c_math.cpp - test exercising [lib.c.math]

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2001-2006 Rogue Wave Software.

Definition at line 53 of file 26.c.math.cpp.

◆ FUN_2

#define FUN_2 (   name)
Value:
template <class T> \
T name (T, T) { \
static const char* const tname = rw_any_t (T ()).type_name (); \
rw_assert (0, 0, __LINE__, "std::%s (%s, %s) not declared\n", \
#name, tname, tname); \
return T (); \
} typedef void unused_typedef

Definition at line 62 of file 26.c.math.cpp.

◆ FUN_2_INT

#define FUN_2_INT (   name)
Value:
template <class T> \
T name (T, int) { \
static const char* const tname = rw_any_t (T ()).type_name (); \
rw_assert (0, 0, __LINE__, "std::%s (%s, int) not declared\n", \
#name, tname); \
return T (); \
} typedef void unused_typedef

Definition at line 80 of file 26.c.math.cpp.

◆ FUN_2_PINT

#define FUN_2_PINT (   name)
Value:
template <class T> \
T name (T, int*) { \
static const char* const tname = rw_any_t (T ()).type_name (); \
rw_assert (0, 0, __LINE__, "std::%s (%s, int*) not declared\n", \
#name, tname); \
return T (); \
} typedef void unused_typedef

Definition at line 89 of file 26.c.math.cpp.

◆ FUN_2_PTR

#define FUN_2_PTR (   name)
Value:
template <class T> \
T name (T, T*) { \
static const char* const tname = rw_any_t (T ()).type_name (); \
rw_assert (0, 0, __LINE__, "std::%s (%s, %s*) not declared\n", \
#name, tname, tname); \
return T (); \
} typedef void unused_typedef

Definition at line 71 of file 26.c.math.cpp.

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

Definition at line 99 of file 26.c.math.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 355 of file 26.c.math.cpp.

◆ run_test()

int run_test ( int  ,
char *  [] 
)

Definition at line 338 of file 26.c.math.cpp.