Usina BRAdvPL Guide
Sign in
← All topics
COMMANDUnder review

EXPORT FUNCTION

EXPORT FUNCTION AS FuncName( ... ) RETURNING rettype

Historical library-integration declaration.

EXPORT FUNCTIONAdvPL
01 · OVERVIEW

Overview

The eAdvpl guide declares a function exported by an eAdvpl-generated library. Section 5.2, p. 27 describes names, types and external-function return without establishing current support, ABI, architecture or accepted types. This is a historical reference rather than a recipe for any AppServer. The example is a review checklist that neither loads a library nor executes a symbol. (Guia de referência eAdvpl, n.d., ref. 1)

02 · SYNTAX

Syntax

EXPORT FUNCTION AS FuncName( ... ) RETURNING rettype

Return value

Declaration without its own return; rettype belongs to the external function.

03 · PRACTICAL EXAMPLE

Commented example

// Proposed integration record; not executable code.
Library: verify origin and architecture
Symbol: verify exported name
Parameters: verify types and convention
Current compatibility: unconfirmed
Expected result

Analysis checklist; no library used. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Do not guess types or calling conventions from a function name.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de referência eAdvpl. Seção 5.2, p. 27. Autoria não confirmada. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha