mirror of
https://github.com/ubf/ubf.git
synced 2026-04-22 12:46:25 +00:00
34 lines
796 B
Erlang
34 lines
796 B
Erlang
%%%----------------------------------------------------------------------
|
|
%%% $Id$
|
|
%%% 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=""}).
|
|
|
|
%% ubf proplist record
|
|
-record('#P',
|
|
{value=[]}).
|
|
|
|
-endif. % -ifndef(ubf)
|