mirror of
https://github.com/ubf/ubf.git
synced 2026-04-24 05:35:47 +00:00
33 lines
820 B
Erlang
33 lines
820 B
Erlang
%%%----------------------------------------------------------------------
|
|
%%% Description: UBF Utilities
|
|
%%%----------------------------------------------------------------------
|
|
|
|
-ifndef(ubf).
|
|
-define(ubf, true).
|
|
|
|
%%%-------------------------------------------------------------------
|
|
%%% Macros
|
|
%%%-------------------------------------------------------------------
|
|
|
|
%% ubf string helper
|
|
-define(S(X),
|
|
#'#S'{value=X}).
|
|
|
|
%% ubf proplist helper
|
|
-define(P(X),
|
|
#'#P'{value=X}).
|
|
|
|
%%%-------------------------------------------------------------------
|
|
%%% Records
|
|
%%%-------------------------------------------------------------------
|
|
|
|
%% ubf string record
|
|
-record('#S',
|
|
{value="" :: string()}).
|
|
|
|
%% ubf proplist record
|
|
-record('#P',
|
|
{value=[] :: [{term(),term()}]}).
|
|
|
|
-endif. % -ifndef(ubf)
|