generateTokenImpl :: ForeignPtr SessionImpl -> Maybe CorrelationId -> IO ()
generateTokenImpl s cid =
    withForeignPtr s $ \p ->
          withMaybeCid cid $ \cidPtr -> do
            rc <- blpapi_Session_generateToken p cidPtr nullPtr
            failIfBadErrorCode rc
generateTokenImpl :: ForeignPtr SessionImpl -> Maybe CorrelationId -> IO ()
generateTokenImpl s cid =
    withForeignPtr s $ \p ->
          withMaybeCid cid $ \cidPtr -> do
            rc <- blpapi_Session_generateToken p cidPtr nullPtr
            failIfBadErrorCode rc
generateTokenImpl s cid =
    withForeignPtr s $ \p ->
          withMaybeCid cid $ \cidPtr -> do
            rc <- blpapi_Session_generateToken p cidPtr nullPtr
            failIfBadErrorCode rc