PostgreSQL Source Code  git master
cash.h File Reference
#include "fmgr.h"
Include dependency graph for cash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PG_GETARG_CASH(n)   DatumGetCash(PG_GETARG_DATUM(n))
 
#define PG_RETURN_CASH(x)   return CashGetDatum(x)
 

Typedefs

typedef int64 Cash
 

Functions

static Cash DatumGetCash (Datum X)
 
static Datum CashGetDatum (Cash X)
 

Macro Definition Documentation

◆ PG_GETARG_CASH

#define PG_GETARG_CASH (   n)    DatumGetCash(PG_GETARG_DATUM(n))

Definition at line 32 of file cash.h.

◆ PG_RETURN_CASH

#define PG_RETURN_CASH (   x)    return CashGetDatum(x)

Definition at line 33 of file cash.h.

Typedef Documentation

◆ Cash

typedef int64 Cash

Definition at line 17 of file cash.h.

Function Documentation

◆ CashGetDatum()

static Datum CashGetDatum ( Cash  X)
inlinestatic

Definition at line 27 of file cash.h.

28 {
29  return Int64GetDatum(X);
30 }
Datum Int64GetDatum(int64 X)
Definition: fmgr.c:1683

References Int64GetDatum().

Referenced by gbt_num_fetch().

◆ DatumGetCash()

static Cash DatumGetCash ( Datum  X)
inlinestatic

Definition at line 21 of file cash.h.

22 {
23  return DatumGetInt64(X);
24 }
static int64 DatumGetInt64(Datum X)
Definition: postgres.h:733

References DatumGetInt64().

Referenced by gbt_num_compress().