The code below can be run in Eclipse ide, but in my Idea13 it says there is an error.
%% ====================================================================
%% Macro definicaton
%% ====================================================================
-define(CREATE_RD(KV_T_La, Record),
begin
RD = #Record{}, %%idea gives an error here
PL = record_info(fields,Record),
I_L = lists:zip(PL, lists:seq(2, length(PL)+1)),
InsertL = [{binary_to_existing_atom(BK,latin1), V} || {BK, V} <- KV_T_La],
update_tuple(InsertL, I_L, RD)
end
).
Thanks for your helping.
The code below can be run in Eclipse ide, but in my Idea13 it says there is an error. %% ==================================================================== %% Macro definicaton %% ==================================================================== -define(CREATE_RD(KV_T_La, Record), begin RD = #Record{}, %%idea gives an error here PL = record_info(fields,Record), I_L = lists:zip(PL, lists:seq(2, length(PL)+1)), InsertL = [{binary_to_existing_atom(BK,latin1), V} || {BK, V} <- KV_T_La], update_tuple(InsertL, I_L, RD) end ). Thanks for your helping.