---
title: "List out the pre-defined Macros in Erlang?"  
description: "List out the pre-defined Macros in Erlang?"  
author: "Anonymous User"  
published: 2015-06-27  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/2664/list-out-the-pre-defined-macros-in-erlang  
category: "erlang"  
tags: ["functional programming", "concurrent programming", "erlang"]  
reading_time: 1 minute  

---

# List out the pre-defined Macros in Erlang?

## The pre-defined Macros in Erlang is

- Module: It returns the name of the current module
- Module_String: It returns the name of the current module, as a string
- File: It returns the current filename
- Line: It returns the current line number
- Machine: It returns the current machine name, ‘BEAM.’

## Answers

### Answer by Anonymous User

## The pre-defined Macros in Erlang is

- Module: It returns the name of the current module
- Module_String: It returns the name of the current module, as a string
- File: It returns the current filename
- Line: It returns the current line number
- Machine: It returns the current machine name, ‘BEAM.’


---

Original Source: https://www.mindstick.com/interview/2664/list-out-the-pre-defined-macros-in-erlang

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
