libnum: rename the namespace [num] -> [libnum]
The first name would make `num` on its own ambiguous when using the namespace.
This commit is contained in:
parent
4238d5853f
commit
10cf9951a0
|
@ -27,7 +27,7 @@
|
|||
#include <type_traits>
|
||||
#include <concepts>
|
||||
|
||||
namespace num {
|
||||
namespace libnum {
|
||||
|
||||
struct num8;
|
||||
struct num16;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <num/num.h>
|
||||
using namespace num;
|
||||
using namespace libnum;
|
||||
|
||||
/* Digits of the decimal part, from most to least significant. Returns the
|
||||
number of digits (which is 0 when x=0) */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <num/num.h>
|
||||
using namespace num;
|
||||
using namespace libnum;
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <num/num.h>
|
||||
using namespace num;
|
||||
using namespace libnum;
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <num/num.h>
|
||||
|
||||
using namespace num;
|
||||
using namespace libnum;
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include <num/num.h>
|
||||
using namespace num;
|
||||
using namespace libnum;
|
||||
|
||||
//---
|
||||
// Integer sampling
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// unit_static.cpp: Compile-time evaluation tests
|
||||
|
||||
#include <num/num.h>
|
||||
using namespace num;
|
||||
using namespace libnum;
|
||||
|
||||
static_assert(sizeof(num8) == 1);
|
||||
static_assert(sizeof(num16) == 2);
|
||||
|
|
Loading…
Reference in New Issue