Please make sure that SDK headers match actual values as well as documentation

Hi,

The function EOS_Achievements_UnlockAchievements is documented as returning EOS_Result, yet the corresponding declaration in header files is void . Which is it ?

We now use code generation based on the header files for our bindings and thus can’t check the return value, however we used to check it.

Regards,

Hello, I’m sorry for any frustration this may have caused you. The return type in the header files is the source of truth.

The return values documented for our asynchronous functions describe the possible values of the ResultCode (EOS_EResult) in the completion delegate.

https://dev.epicgames.com/docs/en-US/api-ref/structs/eos-achievements-on-unlock-achievements-complete-callback-info

I can see how this might cause confusion, as the docs simply state “Return Value”, and the doc comment in the headers doesn’t clearly describe this either.

I will sync with the documentation team to see if there’s a way to move this info to the “Callback Function Information” section of the API reference.