Hi Jason,
I recommend to translate that macro to a normal function, if you are not exporting it, it's going to be optimized to become one-line statement:
db_select_records(DBRef, RecName, Key, Value) ->
gm_server_database:select_records(DBRef, RecName, record_info(fields, RecName), Key, Value).
This way the errors could have more sense.
Kind regards,
Manuel Rubio.
--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/ca297b89-e939-486a-8934-3f2613bc3c23o%40googlegroups.com.
Hi Jason,
I recommend to translate that macro to a normal function, if you are not exporting it, it's going to be optimized to become one-line statement:
db_select_records(DBRef, RecName, Key, Value) ->
gm_server_database:select_records(DBRef, RecName, record_info(fields, RecName), Key, Value).This way the errors could have more sense.
Kind regards,
Manuel Rubio.El 2020-07-17 11:43, Jason escribió:
Hi guys, I'm trying to call record_info(fields, RecName) in a macro, But there is an error when compile。I know what macro and record mean, It's no problem on another project.--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chica...@googlegroups.com.