src: replace IsConstructCall functions with lamda
I noticed that there are three static functions that only check if args is a construct call. This commit suggests replacing them and them with a lamda.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
src