added primitive callbacks support implementation
Merge branch 'function-pointer' into develop